﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using BE;
using DA;
using Quadrem.ExceptionManagement;

namespace BL
{
    public class blReporteGuardia
    {
        public static DataTable Obtener(beReporteGuardia oBE)
        {
            DataTable dt = null;
            try
            {
                dt = daReporteGuardia.Obtener(oBE);
            }
            catch (Exception ex)
            {
                BusinessLogicBase.Publish(ex);
            }
            return dt;
        }

        public static Int32   Registrar(beReporteGuardia oBE)
        {
            try
            {
                return daReporteGuardia.Registrar(oBE);
            }
            catch (Exception ex)
            {
                BusinessLogicBase.Publish(ex);
                return 0;
            }
        }

        public static Int32 Eliminar(beReporteGuardia oBE)
        {
            try
            {
                return daReporteGuardia.Eliminar(oBE);
            }
            catch (Exception ex)
            {
                BusinessLogicBase.Publish(ex);
                return -99;
            }
        }
        public static Int32 Modificar (beReporteGuardia oBE)
        {
            try
            {
                return daReporteGuardia.Modificar(oBE);
            }
            catch (Exception ex)
            {
                BusinessLogicBase.Publish(ex);
                return -99;
            }
        }
    }
}
